module.exports = {
  devServer: {
    host: '0.0.0.0',
    port: 8080,
  },
  publicPath: '/mapdemo/',
  chainWebpack: config => {
    config.plugin('html')
          .tap(args => {
            args[0].title = 'map-demo'
            return args
          })
  },
  css: {
    loaderOptions: {
      sass: {
        // additionalData: `
        //   @import '@/assets/css/app.module.scss';
        // `
        additionalData: (content, loaderContext) => {
          const { resourcePath } = loaderContext;
          if (resourcePath.endsWith("app.module.scss")) return content;
          return `@import "@/assets/css/app.module.scss"; 
          ${content}`;
        },
      }
    }
  },
  productionSourceMap: false,
  configureWebpack: {   
    devtool: false, 
  }
}